package lib.wzh.com.libcore.framework.exception;

import lib.wzh.com.libcore.framework.interfaces.BaseEnum;

/**
 * @Author lib
 * @Date 2021/12/6 16:00
 * @ClassName ExceptionCast
 * @Version v1.0
 */

public class ExceptionCast {

    private ExceptionCast(){}

    public static void cast(String message){
        throw new BusinessException(message);
    }

    public static void cast(BaseEnum baseEnum){
        throw new BusinessException(baseEnum);
    }

    public static void cast(String code, String message) {
        throw new BusinessException(code, message);
    }

}
